import myAxios from "../MyAxios";
import BaseUrl from "../BaseUrl";
const cinemaApi = {
    //添加影城
    add:(params) => {
        return myAxios.post(BaseUrl +'cinema/add',params)
    },
    //获取影城标签
    tags:() => {
       return myAxios.get(BaseUrl +'cinema/tags')
    },
    //影城列表
    list:()=>{
        return myAxios.get(BaseUrl +'cinemas')
    },
    //删除影城
    del:(params) => {
        return myAxios.post(BaseUrl +'cinema/del',params)
    },
    //通过id获取影院详情
    queryById:(params) => {
        return myAxios.get(BaseUrl +'cinema/query',params)
    },
    //修改电影信息
    update:(params)=>{
        return myAxios.post(BaseUrl +'cinema/update',params)
    }
}

export default cinemaApi